/*
 ============================================================================
 Name		: MusicInterceptDocument.cpp
 Author		:  
 Copyrigh	: Your copyright notice
 Description	: CMusicInterceptDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "MusicInterceptAppUi.h"
#include "MusicInterceptDocument.h"

// ========================= MEMBER FUNCTIONS ==================================


// -----------------------------------------------------------------------------
// CMusicInterceptDocument::CMusicInterceptDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CMusicInterceptDocument::CMusicInterceptDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CMusicInterceptDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMusicInterceptDocument* CMusicInterceptDocument::NewL(CEikApplication& aApp)
	{
	CMusicInterceptDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMusicInterceptDocument* CMusicInterceptDocument::NewLC(CEikApplication& aApp)
	{
	CMusicInterceptDocument* self = new (ELeave) CMusicInterceptDocument(aApp);
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMusicInterceptDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CMusicInterceptDocument::~CMusicInterceptDocument()
// Destructor.
// -----------------------------------------------------------------------------
//
CMusicInterceptDocument::~CMusicInterceptDocument()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CMusicInterceptDocument::CreateAppUiL()
// Create the application user interface, and return a pointer to it
// -----------------------------------------------------------------------------
//
CEikAppUi* CMusicInterceptDocument::CreateAppUiL()
	{
	return (static_cast<CEikAppUi*> (new (ELeave) CMusicInterceptAppUi));
	}

// End of File
